package index.oop.lesson;

import java.util.stream.StreamSupport;

public class ArrayTest {
    public static void main(String[] args) {
        int []arr2=new int[0];
        arr2=copyArr(arr2);
        for(int i = 0; i<arr2.length ; i++) {
            System.out.println(arr2[i]);
        }
        for(int item:arr2){
            System.out.println(item);
        }
    }
    public static int [] copyArr(int []arr){
        int []arr1=new int []{1,2,3};
         arr=arr1;
         return arr;

    }
}
